const {ccclass, property} = cc._decorator;

@ccclass
export default class Rotate extends cc.Component {

    @property(cc.Float)
    speed: number = 20;

    update (dt) {
        this.node.angle += dt * this.speed;
    }
}
